Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  



~Lex Kihipitex 11.Nov.02 10:41 PM a Web browser
Toolkits 6.0 Windows 2000


When trying to export DXL from Notes using the LotusScript DXLExporter classes I get the following error if the input object (as set by SetInput()) is a NotesDocumentCollection from a db.FTSearch, but no problem if it is from a db.Search.

The error returned is
"DXLExporter input object is invalid, uninitialized, or not explicitly declared and strongly typed"

The error occurs when the DXLExporter.process() method is called.

To test you need to enter different search criteria syntax. I have also checked using the debugger to check that FTSearch has actually found some result documents..

Here are some extracts of the code, which you might recognise as largely from the samples in the Notes 6 Designer help.

'db.Search that works
'Set collection = db.Search(DBSearch, CutOffDateTime, 100)
'db.FTSearch that does not work
Set collection = db.FTSearch(DBSearch, 100)

'Check if the user wants to continue
If (Messagebox ("Found " + Cstr(collection.Count) + " results." + Chr$(10) + "Export to " + ExportFile + " ?", 33) = 2) Then
Print "Stopped by User"
Exit Sub
End If
Print "Found " + Cstr(Collection.Count) + " results, continuing"

REM Open xml file named after current database
Dim stream As NotesStream
Set stream = session.CreateStream
If Not stream.Open(ExportFile) Then
Messagebox "Cannot open " & ExportFile,, "Error"
Exit Sub
End If
'Delete any existing data in the file
Call stream.Truncate

REM Export current database as DXL
Dim exporter As NotesDXLExporter
Set exporter = session.CreateDXLExporter
'Format the output
exporter.ForceNoteFormat = False

'Skip the DOCTYPE Link as it seems to upset the transformer.
exporter.OutputDOCTYPE = True

'Process the Selected Documents
Call exporter.SetInput(Collection)

'Output to the file stream
Call exporter.SetOutput(stream)

'Start the export
'***Error is reported here****
Call exporter.Process

Print "Finished exporting " + Cstr(collection.count) + " documents to " + ExportFile


Any suggestions or comments most appreciated.

Glenn






LotusScript DXLExporter input objec... (~Lex Kihipitex 11.Nov.02)
. . RE: LotusScript DXLExporter input o... (~Delores Dwonic... 11.Nov.02)
. . Are you sure that the Collection is... (~Dan Elhipister... 11.Nov.02)
. . . . Positive. I check both in the code,... (~Lex Kihipitex 12.Nov.02)
. . RE: LotusScript DXLExporter input o... (~Justin Quetjip... 12.Nov.02)
. . . . Yep..Declared as NotesDocumentColle... (~Lex Kihipitex 13.Nov.02)
. . . . . . RE: Yep..Declared as NotesDocumentC... (~Ben Desaetsi 14.Nov.02)
. . . . . . . . Was there ever an answer to this th... (~Sarah Kifoover... 29.Sep.03)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS